package com.sloera.api.impl;

import com.sloera.api.UserService;
import com.sloera.dto.UserDTO;

import java.util.Random;

public class UserServiceImpl implements UserService {
    @Override
    public UserDTO addUser(UserDTO userDTO) {
        //TODO 业务逻辑
        System.out.println("in:" + userDTO);
        userDTO.setAge(18);
        userDTO.setName("provider");
        userDTO.setUserId(new Random().nextInt(1000000) + "");
        System.out.println("out:" + userDTO);
        return userDTO;
    }
}
